import React from 'react'

export default function WidthAuth(WithComponent) {

    // let isLogin = false
    let isLogin = true
    function NewComponent(props) {

        if (isLogin) {
            return <WithComponent {...props} />
        } else {
            return <div>你没登录，不可以查看</div>
        }
    }
    return NewComponent
}
